
package com.sailing.lianxi.design.observer;

public class BinaryObserver extends AbstractObserver{

    
    public BinaryObserver(Subject subject){
        this.subject = subject;
        this.subject.attach(this);
    }
    
    @Override
    protected void update() {
        System.out.println("Binary String..."+Integer.toBinaryString(subject.getState()));
    }

}

